package taller2.controller.MainEdittingMenu;

import java.awt.event.ActionEvent;

import taller2.interfaces.AlgorithmApplicator;
import taller2.interfaces.Graph;
import taller2.view.draws.DrawingArea;
import taller2.view.menus.MainEdittingMenus.MainEdittingMenu;
import taller2.view.windows.CreatorWindows.FordFulkersonCreatorWindow;
import taller2.view.windows.MainWindows.MainWindow;

public class FordFulkersonAreaMenuListener extends AreaMenuListener{

	public FordFulkersonAreaMenuListener(MainWindow window, DrawingArea area, Graph graph,
			MainEdittingMenu menu, AlgorithmApplicator algorithmApplicator) {
		super(window, area, graph, menu, algorithmApplicator);
	}
	
	// launches the graphCreator window popup
	@Override
	public void actionPerformed(ActionEvent event) {
		new FordFulkersonCreatorWindow(window, graph,area,algorithmApplicator);
		menu.unselectButtons();
	}

}
